package com.wb.system.service.impl;


import com.wb.common.vo.ExamSchedulesModelVO;
import com.wb.system.domain.ExamSchedulesEntity;
import com.wb.system.mapper.ExamSchedulesMapper;
import com.wb.system.service.ExamSchedulesService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ExamSchedulesServiceImpl implements ExamSchedulesService {

    @Resource
    private ExamSchedulesMapper examSchedulesMapper;

    @Override
    public List<ExamSchedulesEntity> selectExamSchedulesList(ExamSchedulesModelVO vo) {
        return examSchedulesMapper.selectExamSchedulesList(vo);
    }

    @Override
    public ExamSchedulesEntity selectById(Long id) {
        return examSchedulesMapper.selectById(id);
    }

    @Override
    public void saveExamSchedules(ExamSchedulesEntity examSchedulesEntity) {
        examSchedulesMapper.save(examSchedulesEntity);
    }

    @Override
    public void updateExamSchedulesById(ExamSchedulesEntity examSchedulesEntity) {
        examSchedulesMapper.updateExamSchedulesById(examSchedulesEntity);
    }

    @Override
    public void removeExamSchedulesByIds(List<Long> ids) {
        if (ids != null && ids.size() > 0) {
            for (Long id : ids) {
                examSchedulesMapper.removeExamSchedulesById(id);
            }
        }
    }
}
